<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS3——过度动画</title>
    <style>
        .content{
            width:100px;
            height:100px;
            background:red;
        }
        /* 通过hover触发过度动画 */
        .content:hover{
            background:orange;
            height:50px;
            /* 变形 */
            transform: rotate(50deg) scale(0.5, 0.5);
            /* 过度动画，包含：背景色、高度、变形，3个动画效果 */
            transition: background 2s linear 0s, height 2s linear 0s, transform 2s linear 0s;
        }
    </style>
</head>
<body>
    <div class="content"></div>
</body>
</html>